<?php

namespace tools\pay\mini_pay;

/**
 * 小程序支付实体
 * @author liuchu-zy
 *
 */
class MiniPay
{

    private $pay_ver;//版本号

    private $pay_type;//请求类型

    private $service_id;//接口类型

    private $merchant_no;//商户号

    private $terminal_id;//终端号

    private $terminal_trace;//终端流水号

    private $terminal_time;//终端交易时间

    private $total_fee;//金额

    private $sub_appid;//公众号appid，公众号支付时使用的appid（若传入，则open_id需要保持一致）

    private $open_id;//用户标识（微信openid，支付宝user_id），需要传入，通过官方接口获得

    private $order_body;//订单描述

    private $notify_url; // 客户接收通知URL

    private $attach; // 附加数据，原样返回

    private $goods_detail; // 订单包含的商品列表信息，Json格式。pay_type为010，020，090时，可选填此字段

    private $key_sign; //签名检验串


    public function getPay_ver()
    {
        return $this->pay_ver;
    }

    public function setPay_ver($pay_ver)
    {
        $this->pay_ver = $pay_ver;
    }

    public function getPay_type()
    {
        return $this->pay_type;
    }

    public function setPay_type($pay_type)
    {
        $this->pay_type = $pay_type;
    }

    public function getService_id()
    {
        return $this->service_id;
    }

    public function setService_id($service_id)
    {
        $this->service_id = $service_id;
    }

    public function getMerchant_no()
    {
        return $this->merchant_no;
    }

    public function setMerchant_no($merchant_no)
    {
        $this->merchant_no = $merchant_no;
    }

    public function getTerminal_id()
    {
        return $this->terminal_id;
    }

    public function setTerminal_id($terminal_id)
    {
        $this->terminal_id = $terminal_id;
    }

    public function getTerminal_trace()
    {
        return $this->terminal_trace;
    }

    public function setTerminal_trace($terminal_trace)
    {
        $this->terminal_trace = $terminal_trace;
    }

    public function getTerminal_time()
    {
        return $this->terminal_time;
    }

    public function setTerminal_time($terminal_time)
    {
        $this->terminal_time = $terminal_time;
    }

    public function getTotal_fee()
    {
        return $this->total_fee;
    }

    public function setTotal_fee($total_fee)
    {
        $this->total_fee = $total_fee;
    }


    public function getKey_sign()
    {
        return $this->key_sign;
    }

    public function setKey_sign($key_sign)
    {
        $this->key_sign = $key_sign;
    }

    public function getSub_appid()
    {
        return $this->sub_appid;
    }

    public function setSub_appid($sub_appid)
    {
        $this->sub_appid = $sub_appid;
    }

    public function getOpen_id()
    {
        return $this->open_id;
    }

    public function setOpen_id($open_id)
    {
        $this->open_id = $open_id;
    }

    public function getOrder_body()
    {
        return $this->order_body;
    }

    public function setOrder_body($order_body)
    {
        $this->order_body = $order_body;
    }

    public function getNotify_url()
    {
        return $this->notify_url;
    }

    public function setNotify_url($notify_url)
    {
        $this->notify_url = $notify_url;
    }

    public function getAttach()
    {
        return $this->attach;
    }

    public function setAttach($attach)
    {
        $this->attach = $attach;
    }

    public function getGoods_detail()
    {
        return $this->goods_detail;
    }

    public function setGoods_detail($goods_detail)
    {
        $this->goods_detail = $goods_detail;
    }


}
